package org.bigmarketapi.gatewaysdk.config;

import org.bigmarketapi.gatewaysdk.annotations.gatewayApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @BelongsProject: Gateway-SDK
 * @BelongsPackage: org.bigmarketapi.gatewaysdk.config
 * @Author: dujiaqi
 * @CreateTime: 2024-12-16  22:45
 * @Description: TODO
 * @Version: 1.0
 */
@Configuration
@ComponentScan("org.bigmarketapi.gatewaysdk")
@EnableConfigurationProperties(gatewaySDKProperties.class)
public class gatewayAutoConfig {
    @Bean
    public gatewayApplication registryApplication(gatewaySDKProperties properties) {
        return new gatewayApplication(properties);
    }
}
